home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-16 | 1.5 KB | 36 lines | [TEXT/GEOL] |
- Item 7693103 16-Oct-89 11:27
-
- From: D2086 Efficient Field Svc, C Faith,PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: How to detect potential Obj's
-
- Is there any way to tell at runtime what potential objects are defined and
- hence could be created? Is there a list somewhere that I could gain access to?
- It seems that this might be possible given all the additional functionality
- that TObject now posseses, instantiation of objects from resources etc.
-
- Specifically I would like to be able to find all the objects that are
- descendants of a specific object, TDocument for example.
-
- One further question:
-
- Is there any way to invoke a method of an object that is defined without
- creating and initializing an object of that type.
-
- I know the code will be out there regardless of whether you create an object or
- not. It is not that big of a deal to create each object and then quickly free
- it but this seems wasteful if all I want to do is invoke a method. I realize
- that this is probably bad form, but I am at least curious if it can be done.
-
- I am asking these questions because I want to have a method of TMyApplication
- that will call a certain method of all objects that are descendants of
- TDocument. I don't want to have to change this method every time I add another
- TDocument descendant. I would like it to be able to call any such TDocument
- descendants automatically.
-
- - Curtis Faith
-
-
-